<template>
	<view class="container">
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {	
		data() {
			return {
				src: ''
			}
		},
		onLoad(e) {
			console.log(e)
			// #ifdef APP-PLUS
			this.src = e.url
			//#endif
			// #ifdef MP-WEIXIN
			this.$scope.setData({
				src: decodeURIComponent(e.url),
			})
			//#endif
		},
		methods: {
			// 刷脸完成后重新加载实名页面
			reloadPage(redirectUrl) {
				const _this = this
				// #ifdef APP-PLUS
				_this.src = redirectUrl
				//#endif

				// #ifdef MP-WEIXIN
				_this.$scope.setData({
					src: redirectUrl,
				})
				// #endif
			}
		}
	}
</script>

<style lang="scss">
</style>
